package com.enterprise.support.servlet.pushlet;

import nl.justobjects.pushlet.core.Config;
import nl.justobjects.pushlet.core.Event;
import nl.justobjects.pushlet.core.Session;
import nl.justobjects.pushlet.util.Log;
import nl.justobjects.pushlet.util.PushletException;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 11-5-29
 * Time: 上午8:29
 * To change this template use File | Settings | File Templates.
 */
public class SessionManager extends nl.justobjects.pushlet.core.SessionManager {

    public Session createSession(Event anEvent) throws PushletException {
        // Trivial
        //return Session.create(createSessionId());
        return Session.create(anEvent.getField("p_id"));
    }
}
